package comitheima.a07oopextendsdemo07;

public class Test {
    public static void main(String[] args) {
        Lecturer l = new Lecturer("001","zhangsan");
        System.out.println(l.getId()+" "+l.getName());
        l.work();
        System.out.println("--------");
        Tutor t= new Tutor("002","lisi");
        System.out.println(t.getId()+" "+t.getName());
        t.work();
        System.out.println("--------");
        Maintainer M= new Maintainer("003","wangwu");
        System.out.println(M.getId()+" "+M.getName());
        M.work();
        System.out.println("--------");
        Buyer b= new Buyer("004","chenliu");
        System.out.println(b.getId()+" "+b.getName());
        b.work();
    }
}
